<?php


namespace app\admin\validate;

use think\Validate;

class Image extends Validate
{
    protected $rule = [
       'file' =>'fileSize:1048576|fileExt:jpg,png,gif,jpeg'
    ];

    protected $message = [
        'file.fileSize' => '超过图片大小',
        'file.fileExt' => '图片格式不对',

    ];

//    protected $scene = [
//        'image' => ['image'],
//
//    ];


}